#import "Cinema.h"

@interface Cinema()

@property NSMutableArray* movies;
@property(readwrite) NSString* name;
@property(readwrite) NSString* address;
@property(readwrite) NSString* workingTime;
@property(readwrite) NSString* phone;
@property(readwrite) NSString* image;

@end

@implementation Cinema

-(instancetype)initWithName:(NSString*) name andWorkingTime:(NSString*) workingTime andImage:(NSString*) image {
    self = [super init];
    if (self) {
        self.name = name;
        self.workingTime = workingTime;
        self.image = image;
        self.movies = [NSMutableArray array];
    }
    return self;
}

-(void) addMovie:(Movie*) movie {
    if (movie)
        [self.movies addObject:movie];
}

-(NSArray*) giveMeAllTheMovies {
    return self.movies;
}

@end
